package com.sgb.kjwl.api.service;

import com.swgk.core.base.model.entity.BaseEntity;

import java.util.List;
import java.util.Map;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.PartMap;

public interface NewUploadAPI {

    //上传单个文件
    @Multipart
    @POST("v1/app/common/fileUpload")
    Call<BaseEntity> uploadFile(@PartMap Map<String, RequestBody> files);

    @Multipart
    @POST("v1/app/common/mutiFileUpload")
    Call<BaseEntity<List<String>>> uploadFileV1(@PartMap Map<String, RequestBody> files);

}
